import { JsonAsset } from 'cc';
import { Tables } from '../../Data/Types';

class GameData {
  public static readonly instance = new GameData();
  private constructor() {}

  public score = 0;
  public CameraOrthoHeight: number = 667; /**相机正交值 */
  public cameraMaxAbsX: number = 0; /**地图位移绝对值x */
  public cameraMaxAbsY: number = 0; /**地图位移绝对值y */

  /**地图x坐标块数量 */
  public mapXNum = 3;
  /**地图y坐标块数量 */
  public mapYNum = 3;
  /**地图每块的大小 */
  public mapBlockSize = 100;

  public tableJson: JsonAsset[] = [];
  public table: Tables;
}

export const GameData_Ins = GameData.instance;
